package com.xci.core.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * 实体记录用户基类
 * @author 吕艳阳
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseRecordUserEntity extends BaseUserEntity {
    /**
     * 显示状态 [显示_1,不显示_0]
     */
    @ExcelIgnore @Excel(name = "显示状态")
    @ApiModelProperty(value = "显示状态 [显示_1,不显示_0]", position = 201)
    private Integer visible;

    /**
     * 删除状态 [未删除_0,其他数字表示已删除]
     */
    @ExcelIgnore @Excel(name = "删除状态")
    @JsonIgnore
    @ApiModelProperty(value = "删除状态 [未删除_0,其他数字表示已删除]", hidden = true)
    private Long deleted;

    /**
     * 启用状态 [启用_1,禁用_0]
     */
    @Excel(name = "启用状态", replace = {"启用_true", "禁用_false"})
    @ApiModelProperty(value = "启用状态 [启用_1,禁用_0]", position = 202)
    private Integer status;

    /**
     * 备注
     */
    @Length(max = 500, message = "备注不能超过{max}个字符")
    @Excel(name = "备注", width = 40d)
    @ApiModelProperty(value = "备注", position = 203)
    private String remark;
}